﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="TroubleAdd.aspx.cs" Inherits="ITOMMS.Web.TroubleManage.TroubleAdd" %>

<%@ Register Src="../Control/HeadControl.ascx" TagName="HeadControl" TagPrefix="uc4" %>
<%@ Register Src="../Control/FootControl.ascx" TagName="FootControl" TagPrefix="uc3" %>
<%@ Register Src="../Control/leftMenuControl.ascx" TagName="leftMenuControl" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>新建故障单</title>
    <link href="../css/layout.css" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" id='skin' type="text/css" href="../css/skin/qq/ymPrompt.css" />
    <link rel="stylesheet" id='Link1' type="text/css" href="../css/jquery.Validator.Tooltip.css" />
    <script type="text/javascript" src="../js/jquery.pack.js"></script>

    <script type="text/javascript" src="../js/jquery.Validator.js"></script>

    <script type="text/javascript" src="../js/ymPrompt.js"></script>

    <!--用到日期控件才使用-->

    <script language="javascript" type="text/javascript" src="../js/My97DatePicker/WdatePicker.js"></script>


</head>
<body>
    <form id="form1" runat="server">
        <div id="content1">
            <div style="margin: 0 0; height: 438px; text-align: center; border: 1px solid #DCDCDC;
                background: url(images/line_bg.PNG) repeat-x bottom;">
                <table class="tblDataArea" width="100%">
                    <tr class="tblQueryArea">
                        <td class="tblDataCaption" colspan="6">
                            <div class="title">
                                <img src="../images/lv3.gif" style="margin-bottom: -3px;" />新建故障单</div>
                                <asp:Button ID="btnBack" CssClass="cssButton" runat="server" Visible="false" Text="返回" OnClick="btnBack_Click" />
                        </td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            故障单号：</td>
                        <td class="tdQueryField">
                            <asp:Label ID="lblTroubleNO" runat="server"></asp:Label></td>
                        <td class="tdQueryCaption">
                            请求者：</td>
                        <td class="tdQueryField" colspan="3">
                            <asp:DropDownList ID="ddlRequestUserID" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" OnSelectedIndexChanged="ddlRequestUserID_SelectedIndexChanged" AutoPostBack="True" >
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            服务分类：</td>
                        <td class="tdQueryField">
                                <asp:DropDownList ID="ddlServiceClass" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                    onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                    onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" >
                                </asp:DropDownList></td>
                        <td class="tdQueryCaption">
                            故障分类：</td>
                        <td class="tdQueryField">
                            <asp:DropDownList ID="ddlTroubleClass" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" >
                            </asp:DropDownList></td>
                        <td class="tdQueryCaption">
                            影响范围：</td>
                        <td class="tdQueryField">
                            <asp:DropDownList ID="ddlIncidence" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" >
                                <asp:ListItem Value="1">影响业务</asp:ListItem>
                                <asp:ListItem Value="2">影响群体</asp:ListItem>
                                <asp:ListItem Value="3">影响部门</asp:ListItem>
                                <asp:ListItem Value="4">影响个人</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            故障设备：</td>
                        <td class="tdQueryField">
                           
                            <asp:DropDownList ID="ddlTroubleSource" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" >
                            </asp:DropDownList></td>
                        <td class="tdQueryCaption">
                            事件来源：</td>
                        <td class="tdQueryField">
                            <span style="color: #ff0000">
                            <asp:DropDownList ID="ddlTaskSource" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" >
                            </asp:DropDownList></span></td>
                        <td class="tdQueryCaption">
                            紧急程度：</td>
                        <td class="tdQueryField">
                            <asp:DropDownList ID="ddlUrgencyDegree" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" >
                                <asp:ListItem Value="1">低</asp:ListItem>
                                <asp:ListItem Value="2">正常</asp:ListItem>
                                <asp:ListItem Value="3">高</asp:ListItem>
                                <asp:ListItem Value="4">紧急</asp:ListItem>
                            </asp:DropDownList></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            期望完成时间：</td>
                        <td class="tdQueryField" colspan="5">
                            &nbsp;<asp:TextBox ID="txtExpectTime" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout='';WdatePicker({skin:'blue',dateFmt:'yyyy-MM-dd HH:mm:ss'});"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'" ></asp:TextBox></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            简要标题：</td>
                        <td class="tdQueryField" colspan="5">
                            <span style="color: Red;">
                            <asp:TextBox ID="txtShortTitle" runat="server" class="input_out" onfocus="this.className='input_on';this.onmouseout=''"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"  Width="50%"></asp:TextBox></span></td>
                    </tr>
                    <tr>
                        <td class="tdQueryCaption">
                            故障现象详细描述：</td>
                        <td class="tdQueryField" colspan="5">
                            <asp:TextBox ID="txtTroubleDescription" runat="server" TextMode="MultiLine" class="input_out"
                                onfocus="this.className='input_on';this.onmouseout=''" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onmousemove="this.className='input_move'" onmouseout="this.className='input_out'"
                                Height="100px" Width="80%" ></asp:TextBox><span style="color: #ff0000"></span></td>
                    </tr>
                
             <%--   <table class="tblDataArea" width="100%" id="tablechuli" runat="server">--%>
                    <tr class="tblQueryArea" id="tablechuli_01" runat="server">
                        <td class="tblDataCaption" colspan="7">
                            <div  class="title">
                                <img src="../images/lv3.gif" style="margin-bottom: -3px;" />分派处理</div>
                        </td>
                    </tr>
                    <tr id="tablechuli_02" runat="server">
                        <td class="tdQueryCaption" >
                            处理组：</td>
                        <td class="tdQueryField" colspan="1">
                            <asp:DropDownList ID="ddlNextDepartment" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                onmouseout="this.className='input_out'" >
                            </asp:DropDownList></td>
                        <td class="tdQueryCaption" colspan="1">
                            处理人：</td>
                        <td class="tdQueryField" colspan="4" >
                            &nbsp;<asp:DropDownList ID="ddlNextPerson" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                onmouseout="this.className='input_out'" >
                            </asp:DropDownList></td>
                    </tr>
                    <tr id="tablechuli_03" runat="server">
                        <td class="tdQueryCaption" >
                            处理建议：</td>
                        <td class="tdQueryField" colspan="6">
                            <asp:TextBox ID="txtTransactComments" runat="server" class="input_out" Height="80px"
                                onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                onmouseout="this.className='input_out'" TextMode="MultiLine"  Width="80%"></asp:TextBox></td>
                    </tr>
                    <tr id="tablechuli_04" runat="server">
                        <td class="tdQueryCaption" >
                            状态：</td>
                        <td class="tdQueryField" colspan="6">
                            <asp:DropDownList ID="ddlState" runat="server" class="input_out" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                onmouseout="this.className='input_out'" >
                            </asp:DropDownList>(说明：状态只有处理人可以看到并能修改处理状态及填写处理反馈)</td>
                    </tr>
                    <tr id="tablechuli_05" runat="server">
                        <td class="tdQueryCaption" id="tdfeedback1" >
                            处理反馈：</td>
                        <td class="tdQueryField" colspan="6">
                            <asp:TextBox ID="txtFeedback" runat="server" class="input_out" Height="80px" onblur="this.className='input_off';this.onmouseout=function(){this.className='input_out'};"
                                onfocus="this.className='input_on';this.onmouseout=''" onmousemove="this.className='input_move'"
                                onmouseout="this.className='input_out'" TextMode="MultiLine"  Width="80%"></asp:TextBox></td>
                    </tr>
               <%-- </table>--%>
               </table>
                <table class="tblDataArea" width="100%">
                    <tr class="tblQueryArea">
                        <td class="tblDataCaption" style="text-align: center; height: 31px;">
                            <asp:Button ID="btnSave" runat="server" CssClass="cssButton" Text="保存" OnClientClick="javascript:return confirm('你确认要提交吗?');" OnClick="btnSave_Click" /></td>
                    </tr>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
    
    <script type="text/javascript">

function check()
{
	if($.GetValidResult())/*验证表单*/
	{	
	    return true; 
	}
	else
	{
	    return false;
	}
}

    $("#txtTroubleDescription").attr("dataType","Require");
    $("#txtTroubleDescription").attr("tip", "故障现象描述不能为空");
    
    $("#txtAssetName").attr("dataType","Require");
    $("#txtAssetName").attr("tip", " ");
    
    
    $("#ddlRequestUserID").attr("dataType","OverEqualsZero");
    $("#ddlRequestUserID").attr("tip", "请求者必要选取");
                
</script>
